package com.ms.service.module.analysisgroup.db.model;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ms.service.module.analysisgroup.CoinExpenditureWay;
import com.xpec.c4.db.model.basic.BasicModel;

/**
 * C幣產出的警告標準設定
 * @author 16040
 *
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = CoinExpenditureAlertSettingModel.modelName)
public class CoinExpenditureAlertSettingModel extends BasicModel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1770088560810554331L;

	public static final String modelName = "coin_expenditure_alert_setting";
	
	/**
	 * 初始警示設定
	 */
	public static final BigDecimal DEFAULT_ALERT_VALUE = new BigDecimal("200000000.00");

	private int id;
	
	/**
	 * 支出方式
	 */
	private CoinExpenditureWay coinExpenditureWay;
	
	/**
	 * 支出方式(註釋)
	 */
	private String coinExpenditureWayDesc;
	
	/**
	 * 警示標準
	 */
	private BigDecimal alertValue;

	@Enumerated(EnumType.STRING)
	public CoinExpenditureWay getCoinExpenditureWay() {
		return coinExpenditureWay;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setCoinExpenditureWay(CoinExpenditureWay coinExpenditureWay) {
		this.coinExpenditureWay = coinExpenditureWay;
	}

	public String getCoinExpenditureWayDesc() {
		return coinExpenditureWayDesc;
	}

	public void setCoinExpenditureWayDesc(String coinExpenditureWayDesc) {
		this.coinExpenditureWayDesc = coinExpenditureWayDesc;
	}

	public BigDecimal getAlertValue() {
		return alertValue;
	}

	public void setAlertValue(BigDecimal alertValue) {
		this.alertValue = alertValue;
	}
	
}
